package com.aaa.daydemo111.demo3;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月01日9:35
 */
public class TestDaemon {
    public static void main(String[] args) {
        DaemonDemo d1 = new DaemonDemo();
        d1.setDaemon(true);
        d1.start();

        for (int i = 0; i < 10; i++) {
            System.out.println("mian==="+i);
        }
    }
}
class DaemonDemo extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 20; i++) {
            System.out.println(Thread.currentThread().getName()+"===="+i);
        }

    }
}